<?php
require_once FOREGROUND_MOBILE_COMMON_ACTION_DIR . '/member.php';

class foreground_mobile_member_ajax_common_action extends foreground_mobile_member_common_action
{
    protected function _set_member_view_data()
    {
    
    }
    
    protected function check_login()
    {
        if($this->_if_require_login){
            $result = array('status' => 0, 'message' => '', 'data' => array());
            
            $session_member_info = self::$data['session_member_info'];
            if(empty($session_member_info['id'])){                
                $result['status']  = -401;
                $result['message'] = '未登录';
                	
                $this->set_view_status($result['status']);
                $this->set_view_message($result['message']);
                
                $view_result = self::get_view_result();
                echo json_encode($view_result);
            }
        }
    }
    
    
    
    /**
     * ajax【一般不用】渲染布局、合成整个页面，并输出
     */
    protected function _render()
    {
        
    }
}